package oop多态作业;

public class TestPet {
    public static void main(String[] args) {
    Pet pet ;
    pet=new Dog("小黑");
    pet.eat();
    pet=new Cat("小白");
    pet.eat();
}
  }